<!doctype html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>1.姓名案例_插值语法实现</title>
    <script src="../js/vue.min.js"></script>
</head>

<body>
    <div id="root">
        姓：<input type="text" v-model:value="fristName"> <br>
        名：<input type="text" v-model:value="lastName"> <br>
        姓名：<span>{{fristName}} - {{lastName}}</span>

    </div>

    <script type="text/javascript">

        new Vue({
            el: '#root',
            data() {
                return {
                    fristName: '张',
                    lastName: '三'
                }
            }
        })

    </script>
</body>

</html>